<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>1101: DBUtility.Common&lt; T &gt;模板类参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- 制作者 Doxygen 1.7.2 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="namespaces.html"><span>包</span></a></li>
      <li class="current"><a href="annotated.html"><span>类</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>组合类型列表</span></a></li>
      <li><a href="classes.html"><span>组合类型索引</span></a></li>
      <li><a href="hierarchy.html"><span>类继承关系</span></a></li>
      <li><a href="functions.html"><span>组合类型成员</span></a></li>
    </ul>
  </div>
  <div class="navpath">
    <ul>
      <li><a class="el" href="namespace_d_b_utility.html">DBUtility</a>      </li>
      <li><a class="el" href="class_d_b_utility_1_1_common-g.html">Common</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">静态公有成员</a>  </div>
  <div class="headertitle">
<h1>DBUtility.Common&lt; T &gt;模板类参考</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="DBUtility::Common-g" -->
<p><a href="class_d_b_utility_1_1_common-g-members.html">所有成员的列表。</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
静态公有成员</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static T&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_b_utility_1_1_common-g.html#af05bb711738fdf4d922e5655bab18a23">Dt2Model</a> (T obj, DataTable dt)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">将DataTable转换成Model实体  <a href="#af05bb711738fdf4d922e5655bab18a23"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static IList&lt; T &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_b_utility_1_1_common-g.html#a9fbeb5afb1a99900e9ff963da008a04c">Dt2List</a> (DataTable dt)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">将DataTable转换成IList  <a href="#a9fbeb5afb1a99900e9ff963da008a04c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static string[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_b_utility_1_1_common-g.html#a6ca599f182a06646e376e13b4f7230ef">GetModelInfo</a> (T obj)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">通过反射获得对象名称和自动增长ID  <a href="#a6ca599f182a06646e376e13b4f7230ef"></a><br/></td></tr>
</table>
<h3>template&lt;T&gt;<br/>
 class DBUtility::Common&lt; T &gt;</h3>

<hr/><h2>成员函数文档</h2>
<a class="anchor" id="a9fbeb5afb1a99900e9ff963da008a04c"></a><!-- doxytag: member="DBUtility::Common&#45;g::Dt2List" ref="a9fbeb5afb1a99900e9ff963da008a04c" args="(DataTable dt)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">static IList&lt;T&gt; <a class="el" href="class_d_b_utility_1_1_common-g.html">DBUtility.Common</a>&lt; T &gt;.Dt2List </td>
          <td>(</td>
          <td class="paramtype">DataTable&#160;</td>
          <td class="paramname"> <em>dt</em>&#160;)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>将DataTable转换成IList </p>
<dl><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">dt</td><td>要转换的DataTable</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>返回:</b></dt><dd>返回IList</dd></dl>

</div>
</div>
<a class="anchor" id="af05bb711738fdf4d922e5655bab18a23"></a><!-- doxytag: member="DBUtility::Common&#45;g::Dt2Model" ref="af05bb711738fdf4d922e5655bab18a23" args="(T obj, DataTable dt)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">static T <a class="el" href="class_d_b_utility_1_1_common-g.html">DBUtility.Common</a>&lt; T &gt;.Dt2Model </td>
          <td>(</td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"> <em>obj</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">DataTable&#160;</td>
          <td class="paramname"> <em>dt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>将DataTable转换成Model实体 </p>
<dl><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">obj</td><td>Model名称</td></tr>
    <tr><td class="paramname">dt</td><td>DataTable</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>返回:</b></dt><dd></dd></dl>

</div>
</div>
<a class="anchor" id="a6ca599f182a06646e376e13b4f7230ef"></a><!-- doxytag: member="DBUtility::Common&#45;g::GetModelInfo" ref="a6ca599f182a06646e376e13b4f7230ef" args="(T obj)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">static string [] <a class="el" href="class_d_b_utility_1_1_common-g.html">DBUtility.Common</a>&lt; T &gt;.GetModelInfo </td>
          <td>(</td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"> <em>obj</em>&#160;)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>通过反射获得对象名称和自动增长ID </p>
<dl><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">obj</td><td>对象</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>返回:</b></dt><dd>返回string[0]类名，string[1]自增ID</dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成：<ul>
<li>D:/Project/1101/DBUtility/Common.cs</li>
</ul>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>全部</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>类</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>名字空间</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>函数</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>变量</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>枚举</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>属性</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>Generated at Sun Apr 10 2011 19:47:50 for 1101 by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.2 </small></address>
</body>
</html>
